<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>添加/编辑文章 - Powered By ${systemConfig.systemName}</title>
<meta name="Author" content="webmall Team" />
<meta name="Copyright" content="webmall" />
<link rel="icon" href="favicon.ico" type="image/x-icon" />
<#include "/WEB-INF/template/common/include.ftl">
<link href="${base}/template/admin/css/input.css" rel="stylesheet" type="text/css" />
<#if !id??>
	<#assign isAdd = true />
<#else>
	<#assign isEdit = true />
</#if>
</head>
<body class="memberCenter">
	<#include "/WEB-INF/template/shop/header.ftl">
	<div class="body memberCenterIndex">
		<div class="bodyLeft">
			<#include "/WEB-INF/template/member/trader_center_left.ftl">
		</div>
				
		<div class="bodyRight">
			<div class="memberCenterDetail list">
				<div class="top">
					<span class="icon">&nbsp;</span><#if isAdd??>添加询问<#else>编辑评论</#if>
	            </div>
					<form id="inputForm" class="validate" action="<#if isAdd??>productcomment!save.action<#else>productcomment!update.action</#if>" method="post">
						<input type="hidden" name="id" value="${id}" />
						<table class="inputTable">
							<tr>
								<th>
									商品名称:
								</th>
								<td>
									<label class="requireField">${(productComment.product.name)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									评论标题:
								</th>
								<td>
									<label class="requireField">${(productComment.title)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									优点:
								</th>
								<td>
									<label class="requireField">${(productComment.advantage)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									缺点:
								</th>
								<td>
									<label class="requireField">${(productComment.shortcoming)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									评分:
								</th>
								<td>
									<label class="requireField">${(productComment.rank)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									使用心得:
								</th>
								<td>
									<label class="requireField">${(productComment.experience)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									评论的会员:
								</th>
								<td>
									<label class="requireField">${(productComment.member.username)!}</label>
								</td>
							</tr>
							<tr>
								<th>
									是否前台显示:
								</th>
								<td>
									<label><input type="radio" name="productComment.status" value="true"<#if (productComment.status == true)!> checked</#if> />是</label>
									<label><input type="radio" name="productComment.status" value="false"<#if (isAdd || productComment.status == false)!> checked</#if> />否</label>
								</td>
							</tr>
						</table>
						<div class="buttonArea">
							<input type="submit" class="formButton" value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
							<input type="button" class="formButton" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
						</div>
					</form>
				<div class="bottom"></div>
			</div>
		</div>
		<div class="blank"></div>
		<#include "/WEB-INF/template/shop/friend_link.ftl">
	</div>
	<div class="blank"></div>
	<#include "/WEB-INF/template/shop/footer.ftl">
</body>
</html>